package nsd.test.zy02;

public class SalariedEmployee extends ColaEmployee {
    private double monSalary;

    public SalariedEmployee(){

    }

    public SalariedEmployee(String name, int month,double monSalary) {
        super(name, month);
        this.monSalary = monSalary;
    }

    @Override
    public double getSalary(int month){
        if(super.getMouth()==month){
            return monSalary+100;
        }else {
            return monSalary;
        }
    }
}
